package com.tms.basicapi.api;

import com.tms.common.core.domain.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 基础服务Feign客户端
 * 提供用户、角色、菜单等基础数据服务
 */
@FeignClient(value = "tms-basic", fallbackFactory = BasicFeignClientFallbackFactory.class)
public interface BasicFeignClient {

    /**
     * 获取用户信息
     *
     * @param username 用户名
     * @return 用户信息
     */
    @GetMapping("/basic/user/info/{username}")
    R getUserInfo(@PathVariable("username") String username);
}
